package com.arpa.ntocc.common.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 班组信息DTO
 * </p>
 *
 * @author LEO
 * @since 2019-12-09
 */
@Data
@ApiModel(value="TeamDTO对象", description="班组信息")
public class TeamDTO extends BasicEntity {


    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "班组名称")
    private String name;

    @ApiModelProperty(value = "所属机构")
    private String partyGroupCode;

    @ApiModelProperty(value = "所属部门")
    private String departmentCode;
    @ApiModelProperty(value = "所属部门")
    private String departmentName;

    @ApiModelProperty(value = "力别code")
    private String forceTypeCode;
    @ApiModelProperty(value = "力别名称")
    private String forceTypeName;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "创建时间起始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedStart;

    @ApiModelProperty(value = "创建时间终止")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedEnd;

    @ApiModelProperty(value = "修改时间起始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModifiedStart;

    @ApiModelProperty(value = "修改时间终止")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModifiedEnd;

}
